package com.game.modular.game.playerInfo.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 游戏账户(Player)表实体类
 *
 * @author cxy
 * @since 2024-08-07 18:07:17
 */
@ApiModel("游戏账户")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@SuppressWarnings("serial")
public class Player implements Serializable {// swagger2,mybatis-plus
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("账号uid")
    private Long uid;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("性别 0 未知,1男,2女")
    private Integer sex;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("头像框")
    private String avatarFrame;

    @ApiModelProperty("阵营")
    private Integer camp;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;

    @ApiModelProperty("类型  1:普通玩家 2:机器人")
    private Integer type;

    @ApiModelProperty("玩家状态")
    private Integer status;

    @ApiModelProperty("封禁原因")
    private String banReason;

    @ApiModelProperty("解封禁时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date unbanTime;

    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 序列化版本号
    @TableField(exist = false)
    private static final long serialVersionUID = 623952961971083139L;
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 获取主键值
}

